<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h4>Books Page</h4>
<a href="book.jsp?book=JavaWeb">JavaWeb</a>
<br>
<a href="book.jsp?book=C">C</a>
<br>
<a href="book.jsp?book=Android">Android</a>
<br>
<a href="book.jsp?book=Qt">Qt</a>
<br>
<a href="book.jsp?book=Js">Js</a>
<br>
<br>
<%
	Cookie[] cookies=request.getCookies();
	if(cookies!=null&&cookies.length>0){
		for(Cookie c: cookies){
			String cookieName=c.getName();
			if(cookieName.startsWith("ZY_BOOK_")){
				out.println(c.getValue());
				out.print("&nbsp&nbsp&nbsp&nbsp&nbsp");
			}
		}
	}
%>
</body>
</html>